VT-d: define a macro for waiting hardare completion
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Jun 2009 08:27:18 +0000 (09:27 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 5 Jun 2009 08:27:18 +0000 (09:27 +0100)
commit2de77a2754814ce47a9e36422edf9de375ab616f
tree63ac0ea52a720fa550c5adf67ebc315e0d39c1bd
parentab6167c090dc2072672db582cff00685d58817dc
VT-d: define a macro for waiting hardare completion

When set some registers of VT-d, it must wait for hardware
completion. There are lots of duplicated code to do that. This patch
defines a macro for it, thus it is much cleaner.

Signed-off-by: Weidong Han <weidong.han@intel.com>
xen/drivers/passthrough/vtd/dmar.h
xen/drivers/passthrough/vtd/intremap.c
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/qinval.c
xen/drivers/passthrough/vtd/utils.c